package com.jdz.controller.portal;

import com.jdz.common.ServerResponse;
import com.jdz.service.IProjectGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by sun
 **/
@Controller
@RequestMapping("/projectGrade")
public class ProjectGradeController {


    @Autowired
    IProjectGradeService iProjectGradeService;

    /**
     * 获取所以项目级别列表
     * @return
     */
    @ResponseBody
    @RequestMapping(value = "list.do",method = RequestMethod.POST)
    public ServerResponse<List<String>> list(){
        return iProjectGradeService.list();
    }


}
